package practicaspl.nueve;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

import practicaspl.nueve.AnalisisLexer;
import practicaspl.nueve.AnalisisParser;

/**
 * Hello world!
 *
 */
public class Appnueve 
{
    public static void main( String[] args ) throws IOException, RecognitionException
    {
    	CharStream fis = new ANTLRFileStream("EntradaXML.txt");
        AnalisisLexer analex = new AnalisisLexer(fis);
        CommonTokenStream tokens = new CommonTokenStream();
        AnalisisParser sint = new AnalisisParser(tokens);
   
        tokens.setTokenSource(analex);
        
        sint.entradaxml();
    }
}
